define([], function() {
    var tpl = {};

    tpl.search = function() {
        var html = "";
        html += search();
        return html;
    }
    tpl.result = function() {
        var html = "";
        html += result();
        return html;
    }

    var search = function() {
        return '<script id="gesellList_search" type="text/html">' +
            '	<p class="geselllist-tips">适用年龄：0-96月龄</p>' +
            '	<div class="geselllist-modal">' +
            '	    <div class="input-group">' +
            '	      	<input id="searchText" type="text" class="form-control" placeholder="请输入姓名或者手机号">' +
            '	      	<span class="input-group-btn">' +
            '	        	<button id="searchBtn" class="btn btn-default" type="button">' +
            '					<i class="fa fa-search" aria-hidden="true"></i>' +
            '				</button>' +
            '	     	</span>' +
            '	    </div>' +
            '		<div id="geselllistSearchResult" class="geselllist-result"></div>' +
            '	</div>' +
            '</script>';
    }

    var result = function() {
        return '<script id="gesellList_result" type="text/html">' +
            '	{{if list.length > 0}}' +
            '		<ul class="geselllist-patients">' +
            '			{{each list as value}}' +
            '			<li data-userId="{{value.userId}}">' +
            '				<span>{{value.userName}}</span>' +
            '				{{if value.gender == "F"}}' +
            '					<span class="sex sex-girl">女</span>' +
            '				{{else}}' +
            '					<span class="sex sex-boy">男</span>' +
            '				{{/if}}' +
            '				<span>{{value.age}}</span>' +
            '			</li>' +
            '			{{/each}}' +
            '		</ul>' +
            '	{{else}}' +
            '		<div class="geselllist-no-patients">没有搜索到！</div>' +
            '	{{/if}}' +
            '</script>';
    }

    return tpl;
});